<template>
  <div class="registerSelection">
    <el-row>
      <!--左侧图片 -->
      <el-col :span="10">
        <div class="login_img"></div>
      </el-col>
      <!-- 右侧 -->
      <el-col :span="14">
        <div class="login_img bg_img login_right">
          <div class="logo" :style="{'background-image': 'url('+ require('@/assets/img/login/' + $config.logoBgUrl) +')','margin-left': $config.logoBg_left}"></div>

          <div class="organization1">
            <div class="organization_title">
              <div class="organization_title_wordage">
                {{ $t('add.add198') }}/{{ $t('add.add199') }}
              </div>
              <!-- 登录方式 -->
              <div class="organization_title_way"></div>
            </div>

            <div class="organization_item">
              <span>{{ $t('jigou.jigou2') }}？</span>
              <el-button
                style="width: 100px"
                round
                type="primary"
                :size="optionButtonSize"
                @click="organizationClick('have')"
                >{{ $t('jigou.jigou3') }}</el-button
              >
            </div>

            <div class="organization_item">
              <span>{{ $t('jigou.jigou4') }}？</span>
              <el-button
                style="width: 100px"
                round
                type="primary"
                :size="optionButtonSize"
                @click="organizationClick('create')"
                >{{ $t('jigou.jigou5') }}</el-button
              >
            </div>
          </div>
          <div class="tiaoguo" @click="tiaoguo">{{ $t('jigou.jigou20') }}</div>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'BLZMasterSelection',

  data() {
    return {};
  },

  mounted() {},

  methods: {
    organizationClick(type) {
 
      if (type == 'have') {
        this.$router.push('/selectionnextregister?type=have');
      } else {
        this.$router.push('/selectionnextregister?type=create');
      }
    },
    tiaoguo() {
      localStorage.setItem('tg_expand', true);
      this.$router.push('/personinfo');
    },
  },
};
</script>

<style lang="scss" scoped>
.login {
  height: 100vh;
  padding: 0;
  margin: 0;
}

//
.login_img {
  width: 100%;
  height: 100vh;
  background-image: url(~@/assets/img/login/bg_left.png);
  background-size: cover;
}

.bg_img {
  background-image: url(~@/assets/img/login/bg_right.png);
  background-size: cover;
}

// 右侧
.login_right {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  .tiaoguo {
    color: #63a0d7;
    cursor: pointer;
    letter-spacing: 3px;
    position: absolute;
    right: 50px;
    top: 50px;
  }

  .logo {
    position: absolute;
    top: 0%;
    left: 0;
    width: 288px;
    height: 120px;
    // background-image: url(~@/assets/img/login/logo.png);
    background-size: cover;
  }
}

.organization1 {
  width: 384px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  color: #333333;

  .organization_item {
    display: flex;
    flex-direction: column;
    align-items: center;

    span {
      font-size: 14px;
      font-weight: 500;
      line-height: 20px;
      color: #333333;
      margin-bottom: 26px;
      margin-top: 26px;
    }
  }
}

.organization_title {
  width: 100%;
  margin-bottom: 0px;

  .organization_title_wordage {
    height: 49px;
    text-align: center;
    font-size: 35px;
    font-family: PingFang SC;
    font-weight: 600;
    line-height: 49px;
    color: #333333;
    opacity: 1;
  }

  .organization_title_way {
    margin: 48px 0;
    padding: 0 23%;
    width: 100%;
    display: flex;
    align-content: center;
    justify-content: space-between;
  }
}
</style>
